package com.frcdi.qms.common.constant;

/**
 * 用户常量信息
 *
 * @author cell
 */
public class UserConstants
{
    /**
     * 平台内系统用户的唯一标志
     */
    public static final String SYS_USER = "SYS_USER";

    /** 正常状态 */
    public static final String NORMAL = "0";

    public static final String ZERO = "0";

    /** 停用状态 */
    public static final String DISABLE = "1";

    /** 异常状态 */
    public static final String EXCEPTION = "1";

    /** 用户封禁状态 */
    public static final String USER_DISABLE = "1";

    /** 角色封禁状态 */
    public static final String ROLE_DISABLE = "1";

    /** 部门正常状态 */
    public static final String DEPT_NORMAL = "0";

    /** 部门停用状态 */
    public static final String DEPT_DISABLE = "1";

    /** 字典正常状态 */
    public static final String DICT_NORMAL = "0";

    /** 是否为系统默认（是） */
    public static final String YES = "Y";

    /** 是否菜单外链（是） */
    public static final String YES_FRAME = "0";

    /** 是否菜单外链（否） */
    public static final String NO_FRAME = "1";

    /** 菜单类型（目录） */
    public static final String TYPE_DIR = "M";

    /** 菜单类型（菜单） */
    public static final String TYPE_MENU = "C";

    /** 菜单类型（按钮） */
    public static final String TYPE_BUTTON = "F";

    /** Layout组件标识 */
    public final static String LAYOUT = "Layout";

    /** ParentView组件标识 */
    public final static String PARENT_VIEW = "ParentView";

    /** InnerLink组件标识 */
    public final static String INNER_LINK = "InnerLink";

    /** 校验是否唯一的返回标识 */
    public final static boolean UNIQUE = true;
    public final static boolean NOT_UNIQUE = false;

    /**
     * 用户名长度限制
     */
    public static final int USERNAME_MIN_LENGTH = 2;
    public static final int USERNAME_MAX_LENGTH = 20;

    /**
     * 密码长度限制
     */
    public static final int PASSWORD_MIN_LENGTH = 5;
    public static final int PASSWORD_MAX_LENGTH = 20;

    /**
     * 主数据类型
     */
    public static final String EQUIPMENT = "0";
    public static final String METHOD = "1";
    public static final String MATERIAL = "2";

    /**
     * 审核结果（0未审核/1已通过/2未通过）
     */
    public static final String AUDIT_NOT_AUDITED = "0";
    public static final String AUDIT_PASSED = "1";
    public static final String AUDIT_FAILED = "2";

    /**
     * 返回状态（0未返回,1已返回,2驳回）
     */
    public static final String SEND_NOT_RETURNED = "0";
    public static final String SEND_HAS_RETURNED = "1";
    public static final String SEND_REJECTED = "2";

    /**
     * 变更申请单执行状态（0未执行,1已生效,2已驳回,3已执行）
     */
    public static final String EXECUTION_NOT = "0";
    public static final String EXECUTION_PASS = "1";
    public static final String EXECUTION_REJECTED = "2";
    public static final String EXECUTION_COMPLETE = "3";
    // 强行关闭
    public static final String EXECUTION_SHUTDOWN = "99";

    /**
     * 任务状态
     */
    public static final String TASK_NOT = "0";
    public static final String TASK_PASS = "1";

    /**
     * 编码规则-添加时间
     */
    public static final String CODE_ADDTIME = "1";

    /**
     * 数值是否超限
     */
    public static final String IS_NOT_OVERFLOW = "0";
    public static final String IS_OVERFLOW = "1";
    /**
     * 发起的流程类型（组件类型）
     */
    public static final String PROCESS_MATERIAL="0";
    public static final String PROCESS_METHOD="1";
    public static final String PROCESS_EQUIPMENT="2";
    public static final String PROCESS_CHANGE="3";
    public static final String PROCESS_EQUIPMENT_VALIDATION="4";

}
